package com.atguigu.srb.core.mapper;

import com.atguigu.srb.core.pojo.entity.UserAccount;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;


import java.math.BigDecimal;

/**
 * <p>
 * 用户账户 Mapper 接口
 * </p>
 *
 * @author Helen
 * @since 2021-02-20
 */
public interface UserAccountMapper extends BaseMapper<UserAccount> {
    //更新账户的方法
    void updateAccount(
            @Param("bindCode")String bindCode,
            @Param("amount") BigDecimal amount,//余额
            @Param("freezeAmount")BigDecimal freezeAmount);//冻结金额
}
